/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import java.util.Date;
import persistence.rb_purchase_persist;
import vo.rb_purchase;

/**
 *
 * @author Shuhail
 */
public class test_purchase {
    
    public static void main(String[] args) {
        
        rb_purchase_persist purchase = new rb_purchase_persist();
        purchase.getLastPK();
        rb_purchase pur = new rb_purchase();
        pur.setAmt_paid(12.23);
        pur.setDate(new Date());
        pur.setPayment_mode("Cash");
        pur.setQuantity(12);
        pur.setRaw_mat_id("R1");
        pur.setRemarks("jsdjsdnsmd sdhsjhdjsd");
        pur.setTotal_amt(1234);
        pur.setUnit_cost(12);
        pur.setVendor_id("V1");
        purchase.insertIntoPurchase(pur);
    }
    
}
